""" DataNotifier person class """
from PyQt4.QtCore import QDate

class Person:
    __slots__ = ('name', 'date', 'tags')

    def __init__(self, name, date, tags):
        self.name = name
        self.date = date
        self.tags = set(p for p in tags.replace(u',', u' ').split(u' ') if p)

    def getQDate(self):
        r = [int(p) for p in self.date.split('.')]
        r.reverse()
        return QDate(*r)


  